/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.login.plugin.h;

import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.qihoo.gamecenter.sdk.common.i.s;

public class a {
    public static String a(Context paramContext, Intent paramIntent) {
        String str = null;
        if (paramIntent != null)
            str = paramIntent.getStringExtra("app_key");
        if (TextUtils.isEmpty(str))
            str = s.r(paramContext);
        if (TextUtils.isEmpty(str))
            str = "default";
        return str;
    }

    public static String a(Intent paramIntent) {
        String str = null;
        if (paramIntent != null)
            str = paramIntent.getStringExtra("insdk_version");
        if (TextUtils.isEmpty(str))
            str = f.f();
        if (TextUtils.isEmpty(str))
            str = "default";
        return str;
    }

    public static String b(Context paramContext, Intent paramIntent) {
        String str = null;
        if (paramIntent != null)
            str = paramIntent.getStringExtra("app_channel");
        if (TextUtils.isEmpty(str))
            str = s.t(paramContext);
        if (TextUtils.isEmpty(str))
            return "default";
        return str;
    }

    public static String c(Context paramContext, Intent paramIntent) {
        String str = null;
        if (paramIntent != null)
            str = paramIntent.getStringExtra("app_imei");
        if ((TextUtils.isEmpty(str)) && (paramContext != null))
            str = f.g(paramContext);
        if (TextUtils.isEmpty(str))
            str = "default";
        return str;
    }
}